﻿namespace UnityEditor
{
    using System;
    using UnityEngine;

    internal class FallbackEditorWindow : EditorWindow
    {
        private FallbackEditorWindow()
        {
            base.title = "Failed to load";
        }

        private void OnEnable()
        {
            base.title = "Failed to load";
        }

        private void OnGUI()
        {
            GUILayout.BeginVertical(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.BeginHorizontal(new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.Label("EditorWindow could not be loaded because the script is not found in the project", "WordWrapLabel", new GUILayoutOption[0]);
            GUILayout.FlexibleSpace();
            GUILayout.EndHorizontal();
            GUILayout.FlexibleSpace();
            GUILayout.EndVertical();
        }
    }
}

